package com.ctshk.rpc.order.scenic.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.TokenUser;
import com.ctshk.rpc.order.scenic.dto.ScenicOrderCollectionDTO;
import com.ctshk.rpc.order.scenic.dto.ScenicOrderCollectionReceiptDTO;
import com.ctshk.rpc.order.scenic.req.ScenicOrderCollectionConfirmationReq;
import com.ctshk.rpc.order.scenic.req.ScenicOrderCollectionRejectReq;
import com.ctshk.rpc.order.scenic.req.ScenicOrderCollectionReq;
import com.ctshk.rpc.order.scenic.req.ScenicOrderReceiptReq;

import java.util.List;

/**
 * <p>
 * 门票收款明细 服务类
 * </p>
 *
 * @author 张志朋
 * @since 2021-02-24
 */
public interface IScenicOrderCollectionService{
    /**
     * 订单操作收款记录
     *
     * @param scenicOrderCollectionReq
     * @return ScenicOrderCollectionDTO
     */
    Result<List<ScenicOrderCollectionDTO>> list(ScenicOrderCollectionReq scenicOrderCollectionReq);

    /**
     * 订单操作收款记录再次确认
     *
     * @param
     * @return
     */
    Result<Long> confirmation(ScenicOrderCollectionConfirmationReq scenicOrderCollectionConfirmationReq, TokenUser user);

    /**
     * 订单中心 - 收据
     *
     * @param scenicOrderReceiptReq
     * @return ScenicOrderCollectionReceiptDTO
     */
    Result<ScenicOrderCollectionReceiptDTO> collectionReceipt(ScenicOrderReceiptReq scenicOrderReceiptReq,TokenUser user);


    /**
     * 驳回
     *
     * @param req,userId
     * @return
     */
     Result reject(ScenicOrderCollectionRejectReq req,Long userId);


    /**
     * 确认收款
     *
     * @param req,userId
     * @return
     */
    Result confirmCollection(ScenicOrderCollectionRejectReq req,Long userId);

    /**
     * 订单中心 - 收据
     *
     * @param orderId
     * @return ScenicOrderCollectionReceiptDTO
     */
    Result<ScenicOrderCollectionReceiptDTO> collectionReceipts(Long orderId);
}
